package com.nlx.notes.support.handler.exception;

import com.nlx.notes.module.core.enums.error.LoginCodeEnum;
import lombok.Getter;

@Getter
public class BusinessException  extends RuntimeException{

    private final int code;

    public BusinessException(ErrorCode errorCode) {
        super(errorCode.getMessage());
        this.code = errorCode.getCode();
    }

}
